package com.xialinrui.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.xialinrui.entity.ConflictRecord;
import com.xialinrui.mapper.ConflictRecordMapper;
import com.xialinrui.service.ConflictRecordService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author xialinrui
 */
@Service
public class ConflictRecordServiceImpl extends ServiceImpl<ConflictRecordMapper, ConflictRecord> implements ConflictRecordService {
    @Resource
    private ConflictRecordMapper conflictRecordMapper;

    @Override
    public void addOneInstant(ConflictRecord conflictRecord) {
        conflictRecordMapper.insert(conflictRecord);
    }

    @Override
    public void delete(List<Long> ids) {
        conflictRecordMapper.deleteBatchIds(ids);
    }
}
